public class Test01
{
	public static void main(String[] argc)
	{
        A a = new D();
		C c = new D();

		B b1 = (B)a;
		b1.m2();
	}
}

interface A
{
	void m1();
}
interface B
{
	void m2();
}
interface C
{
	void m3();
}


class D implements A,C
{
    public void m1 ()
	{}
	public void m2 ()
	{
		System.out.println("m2");
	}
	public void m3 ()
	{}

}